// -----------------------------------------------------------------------
//  <copyright file="IdentityAutoMapperModule.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2025 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025-03-01 23:03</last-date>
// -----------------------------------------------------------------------

using DaprPlus.AutoMapper;
using DaprPlus.Builder;
using DaprPlus.Mapping;


namespace DaprPlus.Identity.Infrastructure.AutoMapper;

public class IdentityAutoMapperModule : AutoMapperModule
{
    /// <summary>
    /// 将模块服务添加到依赖注入服务容器中
    /// </summary>
    /// <param name="services">依赖注入服务容器</param>
    /// <returns></returns>
    public override IServiceCollection AddServices(IServiceCollection services)
    {
        base.AddServices(services);

        services.AddSingleton<IMapTuple, RoleResourceMapper>();

        return services;
    }
}
